//
//  WWButton.m
//  Shopping
//
//  Created by 张湾湾 on 16/8/19.
//  Copyright © 2016年 张湾湾. All rights reserved.
//

#import "WWButton.h"

@implementation WWButton
- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        
    }
    return self;
}

#pragma mark - 布局 -

-(void)layoutSubviews {
    [super layoutSubviews];
    
        CGFloat midX = self.frame.size.width / 2;
        CGFloat midY = self.frame.size.height/ 2 ;
        self.titleLabel.center = CGPointMake(midX, midY + 15);
        self.imageView.center = CGPointMake(midX, midY - 10);
    
        self.titleLabel.font = [UIFont systemFontOfSize:12];
}

@end
